%% @author Administrator
%% @doc @todo Add description to account_gate.


-module(account_gate).

-include("proto.hrl").

%% ====================================================================
%% API functions
%% ====================================================================
-export([handle_msg/3]).



%% ====================================================================
%% Internal functions
%% ====================================================================


handle_msg(?PROTO_MSG_LOGIN, Msg, Player) ->
	AccoutName = "test",
	io:format("Msg = ~p~n",[Msg]),
	account_api:login(AccoutName, Player),
	{noreply, Player};

handle_msg(MsgId, _Msg, Player) ->
	io:format("Unknown MsgId:~p~n",[MsgId]),
	{noreply, Player}.
